package gptma.bo.model.request;

import gptma.bo.model.BaseEntity;

import javax.persistence.AttributeOverride;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name = "elementEstimation")
@AttributeOverride(name = "id", column = @Column(name = "elementEstimationId"))
public class RequestEvaluationElement extends BaseEntity {

	private static final long serialVersionUID = -787746429807282400L;

	@Column(name = "libelle")
	private String label;

	@Column(name = "commentaire")
	private String comment;

	@Column(name = "estimation")
	private Float charge;

	@ManyToOne
	@JoinColumn(name = "estimationDemandeId")
	private RequestEvaluation requestEvaluation;

	/**
	 * @return the label
	 */
	public String getLabel() {
		return label;
	}

	/**
	 * @param label
	 *            the label to set
	 */
	public void setLabel(String label) {
		this.label = label;
	}

	/**
	 * @return the comment
	 */
	public String getComment() {
		return comment;
	}

	/**
	 * @param comment
	 *            the comment to set
	 */
	public void setComment(String comment) {
		this.comment = comment;
	}

	/**
	 * @return the charge
	 */
	public Float getCharge() {
		return charge;
	}

	/**
	 * @param charge
	 *            the charge to set
	 */
	public void setCharge(Float charge) {
		this.charge = charge;
	}

	public RequestEvaluation getRequestEvaluation() {
		return requestEvaluation;
	}

	public void setRequestEvaluation(RequestEvaluation requestEvaluation) {
		this.requestEvaluation = requestEvaluation;
	}

}
